package com.wq.gof.designer.state;

import java.util.List;

/**
 * @Author: wangqiang20995
 * @Date:2019/1/28
 * @Description:
 * @Resource:
 */
public class UserRule {

    private AbstractLevel currentLevel;

    public UserRule(AbstractLevel abstractLevel){
        this.currentLevel = abstractLevel;
    }

    public UserRule(){
        this.currentLevel = new LowLevel(this);
    }

    public void setCurrentLevel(AbstractLevel abstractLevel){
        this.currentLevel = abstractLevel;
    }

    public List<String> nextLevelPriority(UserVo userVo){
        return this.currentLevel.showLevelPriority(userVo);
    }
}
